package com.moogene.android.engine.mmi;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;

public class ImageLayer extends Layer{
	private Bitmap image;
	private Paint paint;
	public ImageLayer(Bitmap image){
		super(image.getWidth(), image.getHeight());
		this.image = image;
	}

	public ImageLayer(Bitmap image, int width, int height) {
	    super(width, height);
	    this.image = image;
	}

	@Override
	public void draw(Canvas canvas){
		super.draw(canvas);
		canvas.drawBitmap(image, null, getDstRect(), paint);
	}
	
	public void setPaint(Paint p){
		paint = p;
	}
}
